package chan.module.project.database.vastdata;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;

public class DatabaseUtil {
    public static void close(Connection conn,PreparedStatement pstmt,ResultSet rs){
        if(rs != null){
            try {
                rs.close();
            }catch (Exception e){}
        }
        if(pstmt != null){
            try {
                pstmt.close();
            }catch (Exception e){}
        }
        if(conn != null){
            try {
                conn.close();
            }catch (Exception e){}
        }
    }
}
